<html>
  <head>
    <title>Manage Members</title>
   	<script src="./lib/jquery.js" ></script>
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<link rel="stylesheet" href="./lib/jquery.mobile-1.1.1.min.css" />
	<script src="./lib/jquery-1.7.1.min.js"></script>
	<script language="JavaScript" SRC="config.js"></script>
	<script src="./lib/jquery.mobile-1.1.1.min.js"></script>
    <script type="text/javascript" charset="utf-8">
    function loadData(){
  alert("loadData are called");
   $.getJSON('http://'+serverip+'/socialengine/mobileservice/showallUser?callback=?',
   function(data){
    alert(data.Data[0].username); // hellothisisbob@gmail.com
	for(key in data.Data) {
  	  $('#mylist').append('<li>'+'<a href="edituser.html?userid='+data.Data[key].user_id+'" rel="external">'+'<h3>'+data.Data[key].displayname +'</h3>'+'<p>Last login: '+data.Data[key].lastlogin_date+'<p>'+'</a>' +'</li>').listview('refresh');
	
	}
	
  });
 }
    </script>
  </head>
<body onload="loadData()">
<div data-role="page">
	<div data-role="header">
		<h1>Manage Members</h1>
		<a href="index.html" data-role="button" data-icon="home" data-iconpos="notext" rel="external">Home</a>
	</div><!-- /header -->
	<div   data-role="content">
	<ul data-role="listview"  id="mylist" data-filter="true">
	</ul>
  </div><!-- /content -->

</div><!-- /page -->
 </body>
</html>